﻿<%@ Page Language="C#" MasterPageFile="~/settings/masters/base.master" %>

<%@ Import Namespace="Deepcode.Flux.Core.Systems.CMS" %>
<%@ Import Namespace="System.Linq" %>

<script runat="server">
	protected ContentObject Content { get; private set; }

	protected override void OnLoad(EventArgs e)
	{
		Content = ContentQuery.GetByID(Int32.Parse(Request["nodeid"]));
		if (Content == null) Response.Redirect("~/", true);
	
		Page.Title = Content.NodeTitle; 
		html.Text = Content.Fields["BodyContent"];
		
		base.OnLoad(e);
	}
</script>

<asp:Content runat="server" ContentPlaceHolderID="Body">
	<asp:Literal ID="html" runat="server"/>
</asp:Content>